package com.easy.common.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ToString
@TableName("seckill_result")
public class SeckillResult implements Serializable {
    private static final long serialVersionUID = 1L;

    //@TableId(value = "id",type = IdType.AUTO)
    @TableId(type = IdType.INPUT)
    private String id;//秒杀结果id
    private Integer user_id;//用户id
    private Integer seckill_goods_id;//秒杀商品id
    private Integer activity_id;//秒杀活动id
    private Integer result;//0:秒杀失败 1:秒杀成功
    private LocalDateTime seckill_time;//秒杀时间
    private Integer is_del;
}
